Advanced Printer Driver Sample Program
Registering/Printing NV Graphics
Registers a stylized bitmap such as a shop logo in the NV memory (nonvolatile memory) of the TM printer and prints it at the top of receipts.
Registering NV Graphics
Registers bitmap data in the NV memory of the TM printer with TM Flash Logo Setting Utility. This memory maintains data even after the printer power is turned off.
This sample program registers bitmap data in the NV Graphics 0 (Keycode: 48,48).
Printing
Prints the bitmap data registered in NV Graphics 0, using "h" of control font.
Win32 Environment
.NET Environment
In .NET environment, you cannot specify a control font in the TM printer directly.
You need replace fonts. For details on how to replace fonts, see "Step1 Printing device font."
| TrueTypeFont |
Device Font Name |
| Arial |
control |
With this sample program, NV graphic data is created in 1-point Arial, which is converted into a control device font to print NV graphics.
Monitoring Status, Controlling Jobs
Monitors the printer status and cancels jobs when a paper end error occurs.
Win32 Environment
.NET Environment
Maintenance Counter
Obtains the maintenance counter such as the number of paper feeding lines or operating time, using BiGetCounter of Status API.
Some models do not support this function.
Use BiResetCounter to reset the maintenance counter.
Win32 Environment
.NET Environment
Changing Paper Loading Method
Changes the paper loading method from an application. For APD, go to [ Printing Preferences ]-[ Document Settings ]-[ Paper Source ] to set.
With this sample program, change the paper loading method in the same way as you do for the [Paper Source] settings.
Win32 Environment
.NET Environment
Occupying Shared Printer
Occupies a shared printer, using Status API.
When the printer is used in multiple processes such as being used by more than one user, you can avoid conflict with other processes by controlling priorities.
Win32 Environment
.NET Environment
Monochrome/Multi-tone Switching
Image data is printed in multiple tone on the first page and text and barcode data is printed in monochrome on the second page.
This function is only for the TM-T88V.
Win32 Environment
.NET Environment
Forced Reset
Note:
This program will force the printer to reset even if printing is in progress, and the data being printed will be deleted.
A forced reset of the printer is performed from this program without closing the [Print Test Page].
If printing is not completed or an error is not obtained within 150 seconds after executing a print job,
this program displays a confirmation message and then performs a forced reset.
Use the following procedure to confirm this operation.
- Start this program.
- Open the Properties window for the printer, and execute [Print Test Page]. When printing starts, immediately disconnect the printer from the computer.
- Wait approximately 90 seconds, and then connect the printer to the computer once again.
- Check the printer queue in Windows.
If the status is "Initializing", the [Print Test Page] operation has not been completed during this process. Proceed to the next step.
If the status is "Ready", the [Print Test Page] operation has been performed. Start from Step 2 again.
- Click the [Print] button in this program.
- After 150 seconds, the message [Anomalous occurrence. Execute BiForceResetPrinter.] appears.
- Select [Yes]. BiForceResetPrinter is executed, and the TM printer is reset. Then, printing is performed from this program.
Adjust the time (150,000ms for the sample program) as necessary according to the volume of data being printed.
Edited file
Win32 Environment
.NET Environment